import { requestV1 } from '../utils/request';
import { devicesCountApi, structureDetailApi } from '../api';
import { ResponseState, ParamsState } from './services';

// 1. 设备计入统计
export const devicesCount = (params?: ParamsState): Promise<ResponseState> => {
  return requestV1.get(devicesCountApi, { params });
};

// 2. 平台 统计今日数据
export const structureDetail = (
  params?: ParamsState,
): Promise<ResponseState> => {
  return requestV1.get(structureDetailApi, { params });
};

export default '';
